home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / wincom.mak < prev    next >
Encoding:
Text File  |  1997-06-06  |  5.3 KB  |  188 lines

  1. #    Copyright (C) 1991-1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # Common makefile section for 32-bit MS Windows.
  16.  
  17. # Do not use conditionals in this makefile, because they are
  18. # different in NMAKE (!if) and WMAKE (!ifeq).
  19.  
  20.  
  21. # Note that built-in libpng and zlib aren't available.
  22.  
  23. SHARE_LIBPNG=0
  24. SHARE_ZLIB=0
  25.  
  26. # Define the platform name.
  27.  
  28. PLATFORM=mswin32_
  29.  
  30. # Define the ANSI-to-K&R dependency.  Borland C, Microsoft C and
  31. # Watcom C all accept ANSI syntax, but we need to preconstruct ccf32.tr 
  32. # to get around the limit on the maximum length of a command line.
  33.  
  34. AK=ccf32.tr
  35.  
  36. # Define the syntax for command, object, and executable files.
  37.  
  38. CMD=.bat
  39. O=-o
  40. OBJ=obj
  41. XE=.exe
  42. XEAUX=.exe
  43.  
  44. # Define generic commands.
  45.  
  46. # We have to use a batch file for the equivalent of cp,
  47. # because the DOS COPY command copies the file write time, like cp -p.
  48. CP_=call cp.bat
  49. RM_=erase
  50. RMN_=call rm.bat
  51.  
  52. # Define the generic compilation flags.
  53.  
  54. PLATOPT=
  55.  
  56. INTASM=
  57. PCFBASM=
  58.  
  59. # Define the files to be removed by `make clean'.
  60. # nmake expands macros when encountered, not when used,
  61. # so this must precede the !include statements.
  62.  
  63. BEGINFILES=gs*.res gs*.ico ccf32.tr\
  64.    $(GSDLL).dll $(GSCONSOLE).exe\
  65.    $(BEGINFILES2)
  66.  
  67. # Include the generic makefiles.
  68. !include version.mak
  69. !include gs.mak
  70. !include lib.mak
  71. !include jpeg.mak
  72. !include libpng.mak
  73. !include zlib.mak
  74. !include devs.mak
  75. !include int.mak
  76.  
  77. # -------------------------- Auxiliary programs --------------------------- #
  78.  
  79. $(ECHOGS_XE): echogs.c
  80.     $(CCAUX_SETUP)
  81.     $(CCAUX) echogs.c $(CCAUX_TAIL)
  82.  
  83. # $(GENARCH_XE) is in individual (compiler-specific) makefiles.
  84.  
  85. $(GENCONF_XE): genconf.c $(stdpre_h)
  86.     $(CCAUX_SETUP)
  87.     $(CCAUX) genconf.c $(CCAUX_TAIL)
  88.  
  89. $(GENINIT_XE): geninit.c $(stdio__h) $(string__h)
  90.     $(CCAUX_SETUP)
  91.     $(CCAUX) geninit.c $(CCAUX_TAIL)
  92.  
  93. # No special gconfig_.h is needed.
  94. # Assume `make' supports output redirection.
  95. gconfig_.h: $(MAKEFILE)
  96.     echo /* This file deliberately left blank. */ >gconfig_.h
  97.  
  98. gconfigv.h: $(MAKEFILE) $(ECHOGS_XE)
  99.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  100.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  101.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  102.  
  103.  
  104. # -------------------------------- Library -------------------------------- #
  105.  
  106. # The Windows Win32 platform
  107.  
  108. mswin32__=gp_mswin.$(OBJ) gp_win32.$(OBJ) gp_nofb.$(OBJ) gp_ntfs.$(OBJ)
  109. mswin32_.dev: $(mswin32__)
  110.         $(SETMOD) mswin32_ $(mswin32__)
  111.         $(ADDMOD) mswin32_ -iodev wstdio
  112.  
  113. gp_mswin.$(OBJ): gp_mswin.c $(AK) gp_mswin.h \
  114.  $(ctype__h) $(dos__h) $(malloc__h) $(memory__h) $(stdio__h) $(string__h) $(windows__h) \
  115.  $(gx_h) $(gp_h) $(gpcheck_h) $(gserrors_h) $(gsexit_h) $(gxiodev_h) $(stream_h)
  116.  
  117. # ----------------------------- Main program ------------------------------ #
  118.  
  119. CCBEGIN=$(CCC) *.c
  120.  
  121. ICONS=gsgraph.ico gstext.ico
  122.  
  123. GS_ALL=$(INT_ALL) $(INTASM)\
  124.   $(LIB_ALL) $(LIBCTR) lib.tr $(ld_tr) $(GSDLL).res $(GSDLL).def $(ICONS)
  125.  
  126. # Make the icons from their text form.
  127.  
  128. gsgraph.ico: gsgraph.icx echogs$(XE)
  129.         echogs -wb gsgraph.ico -n -X -r gsgraph.icx
  130.  
  131. gstext.ico: gstext.icx echogs$(XE)
  132.         echogs -wb gstext.ico -n -X -r gstext.icx
  133.  
  134. # resources for short EXE loader (no dialogs)
  135. $(GS).res: dwmain.rc dwmain.h $(ICONS)
  136.     $(RCOMP) -i$(INCDIR) -r -fo$(GS).res dwmain.rc
  137.  
  138. # resources for main program (includes dialogs)
  139. $(GSDLL).res: gsdll32.rc gp_mswin.h $(ICONS)
  140.     $(RCOMP) -i$(INCDIR) -r -fo$(GSDLL).res gsdll32.rc
  141.  
  142.  
  143. # Modules for small EXE loader.
  144.  
  145. DWOBJ=dwdll.obj dwimg.obj dwmain.obj dwtext.obj gscdefs.obj
  146.  
  147. dwdll.obj: dwdll.cpp dwdll.h gsdll.h
  148.     $(CPP) $(COMPILE_FOR_EXE) -c dwdll.cpp
  149.  
  150. dwimg.obj: dwimg.cpp dwmain.h dwdll.h dwtext.h dwimg.h gscdefs.h gsdll.h
  151.     $(CPP) $(COMPILE_FOR_EXE) -c dwimg.cpp
  152.  
  153. dwmain.obj: dwmain.cpp dwdll.h gscdefs.h gsdll.h
  154.     $(CPP) $(COMPILE_FOR_EXE) -c dwmain.cpp
  155.  
  156. dwtext.obj: dwtext.cpp dwtext.h
  157.     $(CPP) $(COMPILE_FOR_EXE) -c dwtext.cpp
  158.  
  159. # Modules for big EXE
  160.  
  161. DWOBJNO = dwnodll.obj dwimg.obj dwmain.obj dwtext.obj
  162.  
  163. dwnodll.obj: dwnodll.cpp dwdll.h gsdll.h
  164.     $(CPP) $(COMPILE_FOR_EXE) -c dwnodll.cpp
  165.  
  166. # Compile gsdll.c, the main program of the DLL.
  167.  
  168. gsdll.$(OBJ): gsdll.c gsdll.h $(ghost_h)
  169.  
  170. # Modules for console mode EXEs
  171.  
  172. OBJC=dwmainc.obj dwdllc.obj gscdefs.obj
  173. OBJCNO=dwmainc.obj dwnodllc.obj
  174.  
  175. dwmainc.obj: dwmainc.cpp dwmain.h dwdll.h gscdefs.h gsdll.h
  176.     $(CPP) $(COMPILE_FOR_CONSOLE_EXE) -c dwmainc.cpp
  177.  
  178. dwdllc.obj: dwdll.cpp dwdll.h gsdll.h
  179.     $(CPP) $(COMPILE_FOR_CONSOLE_EXE) -c $(CCOBJNAME)dwdllc.obj dwdll.cpp
  180.  
  181. dwnodllc.obj: dwnodll.cpp dwdll.h gsdll.h
  182.     $(CPP) $(COMPILE_FOR_CONSOLE_EXE) -c $(CCOBJNAME)dwnodllc.obj dwnodll.cpp
  183.  
  184. # end of makefile
  185.